<template>
   <el-table
    :data="tableData"
    stripe
    border
    fit
    highlight-current-row
    style="width: 100%">
    <el-table-column
      prop="t_id"
      label="教工号"
      width="180"
      height="180">
    </el-table-column>
    <el-table-column
      prop="user_name"
      label="姓名"
      width="180">
    </el-table-column>
    <el-table-column
      prop="user_password"
      label="密码">
    </el-table-column>
    <el-table-column
      prop="teacher_name"
      label="姓名">
    </el-table-column>
    <el-table-column
      prop="phone"
      label="手机号">
    </el-table-column>
  </el-table>
</template>

<script>
export default {
    data(){
        return {
            tableData:[]
        }
    },
    created(){
        this.$axios.post('/api/admin/queryAllTeacher').then(res=>{
            this.tableData=res.data;
            
        })
    }
}
</script>

<style>
.table{
    cursor: pointer;
    font-size:20px;
}
</style>